var url = window.location.href;

if (url.indexOf("login.m.taobao.com") >= 0) {
  // alert("login");
  document.getElementById("username").value = "周果冻0";
  document.getElementById("password").value = "a";
  document.getElementById("password").click();
}
else if (url.indexOf("s.m.taobao.com/h5?q=") >= 0) {
  // alert("soso");
  document.getElementById("tbh5v0").setAttribute("id","zogodo");
} else if (url.indexOf("detail") >= 0){
  history.go(-1);
}
else if (url.indexOf("m.taobao.com") >= 0) {
  // alert("me");
  var close_but = document.getElementsByTagName("a");
  for (var i = 0; i < close_but.length; i++) {
    if (close_but[i].id.indexOf("close") >= 0) {
      close_but[i].click();
      break;
    }
  }
}
